﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BenhVien
{
    class CheckStatus_Search
    {
        public String getStatus_MaNV(String s)
        {
            if (s == "") return "";
            else return "and MaNV =@MaNV";
        }
        public String getStatus_Ten(String s)
        {
            if (s == "") return "1=1";
            else return "Ten LIKE \'%\'+@Ten+\'%\'";
        }
        public String getStatus_Vitri(String s)
        {
            if (s == "") return "";
            else return "and Vitri=@Vitri";
        }
        public String getStatus_GioiTinh(String s)
        {
            if (s == "") return "";
            else return "and GioiTinh =@GioiTinh";
        }
        public String getStatus_MaPhong(String s)
        {
            if (s == "") return "";
            else return "and MaPhong = @MaPhong";
        }
    }
}
